﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;

namespace MediaWPF
{
    public class myCustomList : ListBox, INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        ListBox mlistbox = new ListBox();

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        public myCustomList()
        {
        }


        /*  public ListBox.ObjectCollection Items
          {
              get
              {
                  return this.mlistbox.Items;
              }

              set
              {
                  // if (value != this.oldItemList)
                  {
                      //this.mlistbox.Items.Clear 
                      IEnumerator enume = value.GetEnumerator();
                      // this.mlistbox.Items. = value.CopyTo
                      NotifyPropertyChanged("ItemList");

                  }

              }
          }*/
    }
}
